Reads session data provided by the SSH-2 host using a reference to a buffer that is marshaled by the COM interface.
'Declaration
Public Overloads Function Read( _
ByRef () As Byte, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Object _
) As Data
'Usage
Dim instance As SessionStream
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim state As Object
Dim value As Data
value = instance.Read(buffer, offset, count, state)
public Data Read(
ref byte[] ,
int ,
int ,
object
)
public: Data* Read(
ref byte[]* ,
int ,
int ,
Object*
)
Parameters
- buffer
- Buffer where data is to be copied to.
- offset
- Offset into the buffer.
- count
- Number of bytes available in buffer starting at the offset.
- state
- Optional parameter useful for passing state information to the Data event in a COM environment.
Return Value
A
Data object encapsulating the received data.